<template>
	<view class="u-m-t-68">
		<up-form>
			<up-form-item>
				<up-button type="primary" text="手机号快捷登录" openType="getPhoneNumber" @getphonenumber="getphonenumber"></up-button>
			</up-form-item>

			<up-form-item>
				<up-button text="取消登录" @click="onCancel"></up-button>
			</up-form-item>
		</up-form>
	</view>
</template>

<script setup>
	import {
		ref
	} from "vue"

	// 取消登录
	const onCancel = () => {
		uni.navigateBack()
	}
	
	// 手机号授权
	const getphonenumber = (e)=>{
		console.log(e);
	}
	// 登录
	const onLogin = () => {
		
	}
</script>

<style lang="scss" scoped>
	.tip-box {
		position: absolute;
		bottom: 60rpx;
		left: 40rpx;
		right: 40rpx;

		.agree {
			color: $uni-color-warning;
		}
	}
</style>